import instance from './axiosConfig.ts'

export function httpGet(url: string, params: object = {}) {
    return instance.get(url, { params })
}
export function httpPost(url: string, params: object = {}) {
    return instance.post(url, params)
}
export function httpDelete(url: string, params: object = {}) {
    return instance.delete(url, { params })
}
export function httpPut(url: string, params: object = {}) {
    return instance.put(url, params)
}   